

$(document).ready(function (){

    var id = window.sessionStorage.getItem('id');
    var proCity = window.sessionStorage.getItem('proCity');
    var status = window.sessionStorage.getItem('status');
    var creatTime = window.sessionStorage.getItem('creatTime');
    var creatPeople = window.sessionStorage.getItem('creatPeople');
    var ck = window.sessionStorage.getItem('ck');

    if (ck=="查看详情"){
        $.ajax({
            url:"/manufacturer/queryFirmDetails",
            type:"post",
            data:{id:id},
            dataType:"json",
            success:function (r){
                var str = "";
                for (let i = 0; i < r.data.length; i++) {
                    str +=
                        "    <li>\n" +
                        "      <label>厂商名称</label>\n" +
                        "      <cite>"+r.data[i].firmName+"</cite>\n" +
                        "    </li>\n" +
                        "    <li>\n" +
                        "      <label>负责人</label>\n" +
                        "      <cite>"+r.data[i].firmFounder+"</cite>\n" +
                        "    </li>\n" +
                        "    <li>\n" +
                        "      <label>联系方式</label>\n" +
                        "      <cite>"+r.data[i].firmTel+"</cite>\n" +
                        "    </li>\n" +
                        "    <li>\n" +
                        "      <label>联系地址</label>\n" +
                        "      <cite>"+r.data[i].firmAddress+"</cite>\n" +
                        "    </li>\n" +
                        "    <li>\n" +
                        "      <label>所属区域</label>\n" +
                        "      <cite>"+proCity+"</cite>\n" +
                        "    </li>\n" +
                        "    <li>\n" +
                        "      <label>描述</label>\n" +
                        "      <cite>"+r.data[i].firmContent+"</cite>\n" +
                        "    </li>\n" +
                        "    <li>\n" +
                        "      <label>状态</label>\n" +
                        "      <cite>"+status+"</cite>\n" +
                        "    </li>\n" +
                        "    <li>\n" +
                        "      <label>创建人</label>\n" +
                        "      <cite>"+creatPeople+"</cite>\n" +
                        "    </li>\n" +
                        "    <li>\n" +
                        "      <label>创建时间</label>\n" +
                        "      <cite>"+creatTime+"</cite>\n" +
                        "    </li>\n" +
                        "    <li>\n" +
                        "      <label>&nbsp;</label>\n" +
                        "      <input name=\"\" type=\"button\" class=\"btn\" value=\"返回\" onclick=\"window.location.href='manufacturerList.html'\"/>\n" +
                        "    </li>";
                }
                $(".forminfo").html(str);
            }
        })
    }


});